#include "namePipe.hpp"
int main()
{
    NamePipe pipe(Path, Creater);
    if(pipe.OpenForRead())
    {
     while(true)
        {
            std::string message;
            int n = pipe.ReadNamePipe(&message);
            if(n > 0)
            {
                std::cout << "Client press> " << message << std::endl;
            }
            else if(n == 0)
            {
                std::cout << "Client is quit, Tool" << std::endl;
                break;
            }
            else if(n < 0)
            {
                std::cerr << "Client press Error" << std::endl;
                break;
            }
        }
    }
}